<%--
  Created by IntelliJ IDEA.
  User: dbychkov
  Date: 22.12.2014
  Time: 13:08
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<tiles:importAttribute name="scripts" ignore="true"/>
<tiles:importAttribute name="templates" ignore="true"/>
<!doctype html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Default tiles template</title>
  <link href="/css/main.css" rel="stylesheet" type="text/css"/>


  <link href="/js/jquery-ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="/js/jquery-1.11.1.js"></script>
  <script src="/js/jquery-ui/jquery-ui.js"></script>
  <script src="/js/jquery.tmpl.js"></script>
  <script src="/js/scripts.js"></script>
  <c:forEach var="script" items="${scripts}">
    <script src="<c:url value="${script}"/>"></script>
  </c:forEach>


<c:forEach var="template" items="${templates}">
    ${template}

  </c:forEach>

  <script>
    $(function() {
      $( "#dialog" ).dialog({
        autoOpen: false,
        show: {
          effect: "blind",
          duration: 200
        },
        hide: {
          effect: "explode",
          duration: 200
        }
      });
    });
  </script>
</head>
<body>
<div class="page">
  <tiles:insertAttribute name="header" />
  <tiles:insertAttribute name="authentication_panel" />

  <div id="nav_and_body_container">
    <nav>
      <tiles:insertAttribute name="menu" />
    </nav>
    <div>
      <tiles:insertAttribute name="body" />
    </div>
  </div>

</div>

<div id="dialog" title="Basic dialog">
</div>
</body>
</html>
